package com.gulimall.auth.feign;

import com.common.to.member.MemberUserLoginTO;
import com.common.to.member.WBSocialUserTO;
import com.common.utils.R;
import com.common.vo.auth.UserLoginVO;
import com.common.vo.auth.UserRegisterVO;
import com.common.vo.auth.WBSocialUserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Ren(任佳宝)
 * @Description: MemberService
 * @Date: 2025/2/8 下午12:20
 * @Version: 1.0
 */
@FeignClient("gulimall-member")
public interface MemberService {

    /**
     * 注册
     */
    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegisterVO user);
    /**
     * 登录
     */
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVO user);
    /**
     * 微博社交登录
     */
    @PostMapping("/member/member/weibo/oauth2/login")
    public R oauthLogin(@RequestBody WBSocialUserTO user);
}
